package com.gdou.mapper;

import com.gdou.dto.ShipDto;
import com.gdou.dto.ShipSaveDto;
import com.gdou.model.Ship;

import java.util.List;

public interface ShipMapper {
    List<Ship> selectBySearch(ShipDto shipDto);

    int insertShip(ShipSaveDto shipSaveDto);

    int deleteOne(Integer id);

    int deleteMany(String ids);

    int updateShip(ShipSaveDto shipSaveDto);

    String[] selectNamesOrderById();

    List<Ship> selectAll();

}
